Skip to content

Conversation

@michelroegl-brunner
Copy link
Member

Problem

The toggle sliders in the settings modal had low contrast, making it difficult to distinguish between ON and OFF states at a glance.

Solution

Enhanced the toggle component styling to improve visibility:

Changes Made:

  1. Darkened OFF state background:

    • Changed from bg-gray-200 to bg-gray-300 (light mode)
    • Changed from dark:bg-gray-600 to dark:bg-gray-700 (dark mode)
  2. Added border to the track for better definition:

    • Added border-2 class
    • Added border-gray-300 dark:border-gray-600 for subtle outline
  3. Enhanced the slider knob contrast:

    • Added after:shadow-md to make the white knob stand out more against the background
  4. Improved ON state visibility:

    • Changed from bg-primary to bg-blue-500 dark:bg-blue-600 for vibrant blue color
    • Makes toggle states immediately distinguishable at a glance

Testing

  • Toggle switches now have much better contrast in both light and dark modes
  • ON state shows vibrant blue background
  • OFF state shows darker gray background with clear border
  • Slider knob has shadow for better visibility

Fixes the visibility issue where users had to look closely to determine toggle state.

@michelroegl-brunner michelroegl-brunner requested a review from a team as a code owner October 20, 2025 14:11
@michelroegl-brunner michelroegl-brunner linked an issue Oct 20, 2025 that may be closed by this pull request
…N state

- Darkened OFF state background (gray-300/gray-700)
- Added border to track for better definition
- Enhanced knob contrast with shadow
- Changed ON state to vibrant blue (blue-500/blue-600) for better visibility
- Makes toggle states immediately distinguishable at a glance
@michelroegl-brunner michelroegl-brunner force-pushed the fix/toggle-visibility-improvement branch from 6cb3de1 to 1ea6021 Compare October 20, 2025 14:13
@michelroegl-brunner michelroegl-brunner merged commit 162f497 into main Oct 20, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slider is to bright

2 participants